<div id="sidebar-identity" class="sidebar-header">
	<?php if(isset($loggedIn) && $loggedIn) { ?>
		<span id="openid-url" class="openid-url"><?php echo $openID; ?></span>
	<?php } else { ?>
		not logged in
	<?php } ?>
</div>
<ul class="sidebar-links">
	<li>
		<a href="<?php echo $html->url('/') ?>">
			Main page
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes') ?>">
			Recent quotes
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/fortunes') ?>">
			Unix fortunes
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/random') ?>">
			Random quotes
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/top') ?>">
			Top rated
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/bottom') ?>">
			Bottom rated
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/mostvoted') ?>">
			Most voted
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/bioreactor') ?>">
			Deleted quotes
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/tags') ?>">
			Tags
		</a>
	</li>
</ul>
<div class="sidebar-header">Interaction</div>
<ul class="sidebar-links">
	<li>
		<a href="<?php echo $html->url('/strips/archive') ?>">
			Comic archive
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/quotes/add') ?>">
			Add quote
		</a>
	</li>
	<li>
		<a href="<?php echo $html->url('/pages/help') ?>">
			Help
		</a>
	</li>
	<?php if(isset($isAdmin) && $isAdmin) { ?>
		<li>
			<a href="<?php echo $html->url('/admin') ?>">
				Admin panel
			</a>
		</li>
	<?php } ?>
	<?php if(isset($loggedIn) && $loggedIn) { ?>
		<li>
			<a href="<?php echo $html->url('/user/logout') ?>">
				Log out
			</a>
		</li>
	<?php } ?>
</ul>
<?php if(!isset($loggedIn) || !$loggedIn) { ?>
	<form id="openid-login" action="<?php echo $html->url('/user/login') ?>">
		<div class="sidebar-label">OpenID login</div>
		<div class="sidebar-controls">
			<input class="textbox" type="text" name="openid-qdb-url" />
			<input class="button" type="submit" value="Go" />
		</div>
	</form>
<?php } ?>
<form id="sidebar-search" action="<?php echo $html->url('/quotes/search') ?>">
	<div class="sidebar-label">Search</div>
	<div class="sidebar-controls">
		<input class="textbox" type="text" name="term" />
		<input class="button" type="submit" value="Go" />
	</div>
</form>
<div id="site-link">
    <ul>
	<li><a href="http://lucidfox.org/">LucidFox</a></li>
	<li><a href="http://sidewaysspa.lucidfox.org">Sideways Spa</a></li>
    </ul>
</div>